package com.dzh.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.Locale;

//如果需要拓展springmvc，官方建议我们这样做
@Configuration
public class MyMvcConfig2 implements WebMvcConfigurer {

    //视图跳转
    @Override
    public  void  addViewControllers(ViewControllerRegistry registry){
        registry.addViewController("/dzh").setViewName("test");
    }





}
